﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Reflection;

namespace THenu.TinyHourseLib.DesignPattern.Factory_Method
{
    public class FactoryDisplay
    {
        public static void PatternShow()
        {
            

            string strfactoryName = ConfigurationSettings.AppSettings["factoryName"];

            LogFactory factory = (LogFactory)Assembly.Load("THenu.TinyHourseLib.DesignPattern")
                .CreateInstance("THenu.TinyHourseLib.DesignPattern.Factory_Method." + strfactoryName);
     
            factory.CreateLog().WriteLog();
        }

    }
 
}
